package com.sg.dto.base.framework.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc TypeDictionaryTestDataDto
 * @使用场景
 */
@Data
public class TypeDictionaryTestDataDto extends BaseDto implements Serializable {

    /**
     * 类型字典编码
     */
    @ApiModelProperty("类型字典编码")
    private String typeDictionaryCode;

    /**
     * 类型字典名称
     */
    @ApiModelProperty("类型字典名称")
    private String typeDictionaryName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        TypeDictionaryTestDataDto that = (TypeDictionaryTestDataDto) o;
        return typeDictionaryCode == that.typeDictionaryCode && typeDictionaryName == that.typeDictionaryName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), typeDictionaryCode, typeDictionaryName);
    }

}
